package steven.sdc.appPoker.Adapter;

import java.util.ArrayList;
import java.util.List;

import com.amurani.slidingmenu.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import steven.sdc.appPoker.Items.ItemNguoiChoi;

public class AdapterCauHinhNguoiChoi extends ArrayAdapter<ItemNguoiChoi>{
	 private ArrayList<ItemNguoiChoi> Items;
	    int layoutId;
	    Context frag;
	    private LayoutInflater inflater;

	    public AdapterCauHinhNguoiChoi(Context frag, int layoutId, ArrayList<ItemNguoiChoi> list){
			super(frag, R.layout.list_item_cauhinhnguoichoi, list);
			this.Items = list;
			this.frag = frag;
			this.layoutId = layoutId;
			
			inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		}
	    public View getView(int position, View convertView, ViewGroup parent) {
	    	
	        convertView = inflater.inflate(R.layout.list_item_cauhinhnguoichoi, null);
	        TextView ten_nguoichoi = (TextView) convertView.findViewById(R.id.text_cauhinh_tennguoichoi);
	        ItemNguoiChoi item = Items.get(position);
	        ten_nguoichoi.setText(""+item.Ten);
	        return convertView;
	    }
	

}
